<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<!--  导航 start -->
<div class="shortcut">
    <div class="w">
        <ul class="fl address">
            <li><a href=""><i class="se"></i>福建</a></li>
        </ul>
        <ul class="fr">
            <li>
                <c:choose>
                    <c:when test="${sessionScope.user != null}">
                        <c:choose>
                            <c:when test="${sessionScope.user.role != '超级用户'}">
                                <a href="${pageContext.request.contextPath}/shop/client/mine">欢迎您,${sessionScope.user.username}</a>
                            </c:when>
                            <c:otherwise>
                                <a href="${pageContext.request.contextPath}/shop/admin/goods">欢迎您,管理员${sessionScope.user.username}</a>
                            </c:otherwise>
                        </c:choose>
                    </c:when>
                    <c:otherwise>
                        <a href="${pageContext.request.contextPath}/shop/client/login.jsp">你好,请登录</a><a href="${pageContext.request.contextPath}/shop/client/register.jsp" class="se">免费注册</a>
                    </c:otherwise>
                </c:choose>
            </li>
            <li class="space"></li>
            <c:if test="${sessionScope.user != null}" >
                <div class="fr-gou">
                    <li>
                        <a href="${pageContext.request.contextPath}/shop/client/loginOut">退出</a>
                    </li>
                    <li class="space"></li>
                </div>
            </c:if>
            <div class="fr-gou">
                <li>
                    <a href="${pageContext.request.contextPath}/shop/client/mine">我的账户</a>
                </li>
                <li class="space"></li>
            </div>
            <div class="fr-gou">
                <li>
                    <a href="javascript:;">帮助中心</a>
                </li>
                <li class="space"></li>
            </div>

        </ul>
    </div>
</div>
</body>
</html>
